CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(.)

include_directories(${FFMPEG_INCLUDE_DIR})

if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

include_directories(${PROJECT_ROOT}/LitePlayer/util)

link_directories(${COMN_DIR}/lib)
link_directories(${FFMPEG_LIBRARY_DIR})


aux_source_directory(. SOURCES)

SET(UTIL_SOURCE 
	${PROJECT_ROOT}/LitePlayer/util/PsParser.cpp 
	${PROJECT_ROOT}/LitePlayer/util/CodecIDConvert.cpp 
	)
	
add_library(MediaWriter STATIC ${SOURCES} ${UTIL_SOURCE})

target_link_libraries(MediaWriter
	${LIB_PLATFORM}
	debug comnd optimized comn
	${FFMPEG_LIBRARIES}
	)

set_target_properties(MediaWriter PROPERTIES DEBUG_POSTFIX "d")

#set_target_properties(MediaWriter PROPERTIES LINK_INTERFACE_LIBRARIES "")
#set_target_properties(MediaWriter PROPERTIES INTERFACE_LINK_LIBRARIES "")

#install(TARGETS MediaWriter DESTINATION lib)

